﻿using DocumentFormat.OpenXml.Spreadsheet;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace avaloniaTest.models
{
    public static class CurrentUser
    {
        public static User UserInstance = new User();
    }

    public class User
    {
        private string _userName;

        public event EventHandler UserNameChanged;

        public string UserName
        {
            get => _userName;
            set
            {
                if (_userName != value)
                {
                    _userName = value;
                    UserNameChanged?.Invoke(this, EventArgs.Empty);
                }
            }
        }
    }
}
